<?php
namespace app\admin\controller;

use app\BaseController;
use app\common\FileSystem;
use think\cache\driver\Redis;
use think\facade\Db;
use think\facade\View;
use app\admin\model\User;
class Index extends BaseController {

    public function index(FileSystem $f){
//        $f->showVar();
//        $this->app->file_system->showVar();
        // 或者批量赋值
        // 模板输出
//        $user = new User;
//        $user->save([
//            'username'  =>  'weijia',
//            'password' =>  'thinkphp@qq.com'
//        ]);
//        $user = User::find(1);
//        echo $user->username;
//        return View::fetch('index');
//        View::assign('sitename','thinkphp@qq.com');
//        return View::fetch();
    }

}